﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Option.aspx.cs" Inherits="MsgCenter.Web.Pages.Operate.Option"
    MasterPageFile="~/Option.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headContent" runat="server">
    <script type="text/javascript" src="<%=ResolveClientUrl("~/JavaScript/FirePlat/assets/js/jqGrid/myJqgrid.js") %>"></script>
    <script type="text/javascript">
        var txtName_ID = "<%=txtName.ClientID %>";
        var txtCode_ID = "<%=txtCode.ClientID %>";
        //******************************** 校验必填项 ********************************
        function CheckSubmit() {
            var CheckResult = CheckValue();
            if (CheckResult == 'success') {
                return true;
            }
            else {
                showDialogMessage(CheckResult);
                return false;
            }
        }
        function CheckValue() {
            if ($('#' + txtName_ID).val() == "") {
                $('#' + txtName_ID).focus();
                return "功能名称必须填写！";
            }
            if ($('#' + txtCode_ID).val() == "") {
                $('#' + txtCode_ID).focus();
                return "功能值必须填写！";
            }
            return "success";
        }
        //******************************** 校验必填项 ********************************
        //******************************** 提示信息 ********************************
        function AlertMessage(message) { alert(message); }
        function Close_Reload() {
            window.parent.CBClose_Load();
        }
        //******************************** 提示信息 ********************************
    </script>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="mailContent">
    <table width="660px" cellpadding="0" cellspacing="0">
        <tr>
            <td width="100px" align="right" height="35px">
                <font color="red">*</font>&nbsp;功能名称:
            </td>
            <td width="240px" align="left">
                <input type="text" id="txtName" runat="server" placeholder="" class="form-control col-xs-10 col-sm-5"
                    style="width: 200px" />
            </td>
            <td width="80px" align="right" height="35px">
                <font color="red">*</font>&nbsp;功能值:
            </td>
            <td width="240px" align="left">
                <input type="text" id="txtCode" runat="server" placeholder="" class="form-control col-xs-10 col-sm-5"
                    style="width: 200px" />
            </td>
        </tr>
        <tr>
            <td width="80px" align="right" height="35px">
                样式名称:
            </td>
            <td width="240px" align="left">
                <input type="text" id="txtCssCss" runat="server" placeholder="" class="form-control col-xs-10 col-sm-5"
                    style="width: 200px" />
            </td>
            <td width="100px" align="right" height="35px">
                列表样式名称:
            </td>
            <td width="240px" align="left">
                <input type="text" id="txtCssCssGrid" runat="server" placeholder="" class="form-control col-xs-10 col-sm-5"
                    style="width: 200px" />
            </td>
        </tr>
        <tr>
            <td width="80px" align="right" height="35px">
                方法名:
            </td>
            <td align="left" colspan="3">
                <input type="text" id="txtFun" runat="server" placeholder="" class="form-control col-xs-10 col-sm-5"
                    style="width: 200px" />
            </td>
        </tr>
        <tr>
            <td width="80px" align="right" height="35px">
                功能描述:
            </td>
            <td align="left" colspan="3">
                <asp:TextBox ID="txtDes" runat="server" Height="100px" TextMode="MultiLine" CssClass="form-control col-xs-10 col-sm-5"
                    Width="93%"></asp:TextBox>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <div style="text-align: center">
        <asp:LinkButton ID="linkSave" runat="server" CssClass="btn btn-info" OnClientClick="return CheckSubmit();"
            OnClick="linkSave_Click" Visible="false"><i class="icon-ok bigger-110"></i>保存</asp:LinkButton>
        &nbsp;&nbsp;
        <button class="btn" onclick="window.parent.CBClose();return false;">
            <i class="icon-undo bigger-110"></i>取消
        </button>
    </div>
</asp:Content>
